# include <ctime>
clock_t start = clock();
dosomething();
clock_t finish = clock();
double overallTime = static_cast<double>(finish - start) / CLOCKS_PER_SEC;
